﻿// ===============================================================================
//  Copyright © ymind.net. All rights reserved .
//  官方网站：http://ymind.net/
//  版权所有：彦铭工作室 老陈出品
// ===============================================================================

using System;
using Lcsoft.RssEngine.Shared;

namespace Lcsoft.RssEngine.RssItem
{
	/// <summary>Globally unique identifier</summary>
	[Serializable]
	public class RssGuid : IRssElement
	{
		private string _name = String.Empty;

		/// <summary>
		/// 
		/// </summary>
		public RssGuid() { this.PermaLink = DBBool.Null; }

		/// <summary>If true, a url that can be opened in a web browser that points to the item</summary>
		public DBBool PermaLink { get; set; }

		/// <summary>Globally unique identifier value</summary>
		public string Name
		{
			get { return this._name; }
			set { this._name = RssDefault.Check(value); }
		}
	}
}
